package com.vallis.lotteryonline.controller;


import com.vallis.lotteryonline.entity.LottoReality;
import com.vallis.lotteryonline.entity.User;
import com.vallis.lotteryonline.util.Result;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author vallis
 * @since 2020-07-13
 */
@Controller
@RequestMapping("/lotto-reality")
public class LottoRealityController {

    /**
     * 功能1：免费
     * 单个用户输入单个实票（复式或单注）数据
     */

    public Result inputTicketByUser(User u, LottoReality lottoReality) {

        return null;
    }

    /**
     * 功能2：免费
     * 单个用户输入多个实票数据
     *
     * @param u
     * @param lottoRealities
     * @return
     */
    public Result inputTicketsByUser(User u, List<LottoReality> lottoRealities) {

        return null;
    }

    /**
     * 功能3：收费
     * 单个用户下载任意期实票数据
     *
     * @param user
     * @return
     */
    public Result downloadTickess(User user, Integer num) {

        return null;
    }

}
